package com.jingtai.core.entity.merchants;


import com.baomidou.mybatisplus.annotation.TableName;
import com.jingtai.core.entity.BaseEntity;
import com.jingtai.validate.swagger.CApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

import io.swagger.annotations.*;

import java.math.BigDecimal;

import java.util.Date;

/**
 * 商品订单详情表（用户对商户）
 * 
 * @author sunlaiqian
 * @date 2020-12-02 15:08:11
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("shop_merchants_to_member_order_detail")
@ApiModel(value = "商品订单详情表（用户对商户）", description = "商品订单详情表（用户对商户）")
public class MerchantsToMemberOrderDetail  extends BaseEntity implements Serializable {


	/**
	 * 订单总编号
	 */
	@CApiModelProperty(value = "订单总编号")
	private String orderTotalCode;

	/**
	 * 订单子编号
	 */
	@CApiModelProperty(value = "订单子编号")
	private String orderChildCode;

	/**
	 * 商品来源 0：供应商1：自营
	 */
	@CApiModelProperty(value = "商品来源 0：供应商1：自营")
	private Integer goodsSource;

	/**
	 * 供应商ID
	 */
	@CApiModelProperty(value = "供应商ID")
	private Long supplyId;

	/**
	 * 商户ID
	 */
	@CApiModelProperty(value = "商户ID")
	private Long merchantsId;

	/**
	 * 商品编码
	 */
	@CApiModelProperty(value = "商品编码")
	private String goodsCode;

	/**
	 * sku编码-商品属性
	 */
	@CApiModelProperty(value = "sku编码")
	private String skuCode;

	/**
	 * 商品名称
	 */
	@CApiModelProperty(value = "商品名称")
	private String goodsName;

	/**
	 * 供货价
	 */
	@CApiModelProperty(value = "供货价")
	private BigDecimal supplyPrice;

	/**
	 * 商品数量
	 */
	@CApiModelProperty(value = "商品数量")
	private Integer goodsNumber;

	/**
	 * 商品图片
	 */
	@CApiModelProperty(value = "商品图片")
	private String goodsImages;

	/**
	 * 商品规格json
	 */
	@CApiModelProperty(value = "商品规格json")
	private String goodsJson;
	/**
	 * 运费
	 */
	@CApiModelProperty(value = "运费")
	private BigDecimal freight;

	/**
	 * 优惠价
	 */
	@CApiModelProperty(value = "优惠价")
	private BigDecimal preferentialPrice;
	/**
	 * 商品单价
	 */
	@CApiModelProperty(value = "商品单价")
	private BigDecimal goodsUnitPrice;

	/**
	 * 实际支付金额
	 */
	@CApiModelProperty(value = "实际支付金额")
	private BigDecimal memberRealPay;

	/**
	 * 单个商品退款状态 0:未发起退款  10：申请退款  20：退款中  30：退款完成  40：退款失败
	 */
	@CApiModelProperty(value = "单个商品退款状态 0:未发起退款  10：申请退款  20：退款中  30：退款完成  40：退款失败")
	private Integer goodsRefundState;

	/**
	 * 库存回退状态 0.不需回退 1:待回退2.回退成功3.回退失败
	 */
	@CApiModelProperty(value = "库存回退状态 10.不需回退 20:待回退 30.回退成功 40.回退失败")
	private Integer inventoryBackState;

	/**
	 * 申请退款时间
	 */
	@CApiModelProperty(value = "申请退款时间")
	private Date refundApplyTime;


}
